<div class="person_Follow app_line">
    <h2>{$uname}关注的人</h2>
    <ul class="interest_person">
    <volist name="list.data" id="vo">
        <li>
            <div class="userPic"><space uid="vo.fid">{uavatar}</space></div>
            <div class="interest_info">
            <p><div class=""><space uid="vo.fid">{uname}</space></div></p>
            <php>if($vo['followState'] == 'unfollow'){</php>
            <p><a class="guanzhu" onclick="spaceFollow($(this),{$vo['fid']})" href="javascript:void(0);">加关注</a></p>
            <php>}else{</php>
            您的粉丝
            <php>}</php>
            </div>
        </li>
    </volist>
    </ul>
    <div class="right"><a href="{:U('home/space/follow',array('uid'=>$uid,'type'=>'following'))}">更多&raquo;</a> </div>
</div>
<script>
//空间关注操作
function spaceFollow(obj,uid){
    var html = '';
    var type="dofollow";
    $('#follow_state').html( '<img src="'+ _THEME_+'/images/icon_waiting.gif" width="15">' );
    $.post( U('weibo/Operate/follow') ,{uid:uid,type:type},function(txt){
        if(txt=='12'){
            obj.parent().html('您的粉丝').addClass('cGray2');
        }else if(txt=='13'){
            obj.parent().html('您的粉丝').addClass('cGray2');
        }else if(txt=='00'){
            ui.error('对方不允许你关注');
        }else{
            ui.error('系统错误请稍后再试');
        }
    });
}

</script>
